<?php

$loader = new \Phalcon\Loader();

/**
 * We're a registering a set of directories taken from the configuration file
 */
$loader->registerDirs(
    array(
        $config->application->controllersDir,
        $config->application->modelsDir
    )
)->register();

$loader->registerNamespaces(array(
		'App\Controllers' => __DIR__ . '/../controllers/',
		'App\Controllers\Admin' => __DIR__ .'/../controllers/admin/',
		'App\Models' => __DIR__ .'/../models/'
))->register();
